Multiple Inheritance for C++

نویسنده

  • Bjarne Stroustrup
چکیده

Multiple Inheritance is the ability of a class to have more than one base class (super class). In a language where multiple inheritance is supported a program can be structured as a set of inheritance lattices instead of (just) as a set of inheritance trees. This is widely believed to be an important structuring tool. It is also widely believed that multiple inheritance complicates a programming language significantly, is hard to implement, and is expensive to run. I will demonstrate that none of these last three conjectures are true.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Co-inheritance of α-and β-thalassemia: challenges in prenatal diagnosis of thalassemia

Background: The double heterozygous state of α/β thalassemia may alter the hematological indices and modify the phonotype. In addion, definite characterizaon of co-inheritance of α- and β-thalassemia heterozygous carriers may change the process of genec counseling. Materials and Methods: An Iranian couple with low hematological indices was analyzed for α-globin gene deleons using mulpl...

متن کامل

An Operational Semantics and Type Safety Proof for C++-like Multiple Inheritance

We present, for the first time, an operational semantics and a type system for a C++-like object-oriented language with both shared and repeated multiple inheritance, together with a machinechecked proof of type safety. The formalization uncovered several subtle ambiguities in C++, which C++ compilers resolve by ad-hoc means or which even result in uncontrolled run-time errors. The semantics is...

متن کامل

Controversy: The Case for Multiple Inheritance in C++

Multiple inheritance is a difficult and complex feature added to C# at release 2.0. Cargill argues that the addition was a step backward in that the feature adds complexity to the language without adding functionality. His basis for the latter half of this claim is that no example of multiple inheritance has been given which cannot be rewritten into a functionally equivalent example which uses ...

متن کامل

A Comparative Study on the Effect of Multiple Inheritance Mechanism in Java, C++, and Python on Complexity and Reusability of Code

Two of the fundamental uses of generalization in object-oriented software development are the reusability of code and better structuring of the description of objects. Multiple inheritance is one of the important features of object-oriented methodologies which enables developers to combine concepts and increase the reusability of the resulting software. However, multiple inheritance is implemen...

متن کامل

Multiple Code Inheritance in Java

Java has multiple inheritance of interfaces, but only single inheritance of code. This situation leads to code being duplicated in Java library classes and applications. We describe a generalization of a Java Virtual Machine (JVM) to support multiple inheritance of code. Our approach places code in interfaces, without requiring language syntax changes or compiler modifications. In our extended ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Computing Systems

دوره 2  شماره 

صفحات  -

تاریخ انتشار 1989